#pragma once
#include "circuitpartdisobj.h"
#include "DsnCircuitPart.h"

class DEF_INTERFACECIRCUIT DsnCircuitPartDisObj :
	public CCircuitPartDisObj
{
public:
	DsnCircuitPartDisObj(DsnCircuitPart *pDsnCircuitPart);
	DsnCircuitPartDisObj(const DsnCircuitPartDisObj *pDisObj, DsnCircuitPart *pDsnCircuitPart=NULL);
	~DsnCircuitPartDisObj(void);

public:
	virtual void Serialize(CArchive & ar);
	virtual void Display(CHoopsMap *pHoopsMap);
	virtual void Transform(const CMatrix transf);
	virtual CObj * Clone() const;
	virtual bool GetBox(double & dblLeft, double & dblBottom, double & dblRight, double & dblTop) const;
	virtual eCircuitUnitType GetCircuitUnitType() const;
	static double getPartRotateAngle( int rotateNum ,bool & isMirr);
};

